package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class TableFunctionColumnListElement {

    private int beginIndex;
    private int endIndex;
    private Identifier columnName;
    private DataType dataType;

    public TableFunctionColumnListElement(Identifier columnName, DataType dataType) {
        this.beginIndex = columnName.getBeginIndex();
        this.endIndex = dataType.getEndIndex();
        this.columnName = columnName;
        this.dataType = dataType;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public Identifier getColumnName() {
        return columnName;
    }

    public DataType getDataType() {
        return dataType;
    }

}
